package com.wifi.channel.dao;

import com.wifi.channel.entity.Channel;

import java.sql.SQLException;
import java.util.List;

public interface ChannelDao {
    List<Object> queryChannel(Integer start, Integer pageSize, String class1id, String class2id, String title) throws SQLException;

    long selectCount(String class1id, String class2id, String title) throws SQLException;

    List<Object> queryChannelClass1() throws SQLException;

    List<Object> queryChannelClass2(String pid) throws SQLException;

    Object getCbyId(Integer id) throws SQLException;

    int updateDel(Integer id, int status) throws SQLException;

    Integer updateUrl(String link, String id) throws SQLException;

    Object confirmChannel(String name, Integer class1, Integer class2) throws SQLException;

    Long insert(Channel channel) throws SQLException;
}
